<form action="" method="post" class="post-tr" onsubmit="return sg(this);" style="margin-top:25px">
  <fieldset><legend>重置密码</legend>
  <span class="sh">登录账号：</span>
  <span class="sp"><input type="text" name="name" value="<?php e_h($d['n'])?>" id="l_name" /></span>
  <span class="sh">邮件认证码：</span>
  <span class="sp"><input type="text" name="ver" value="<?php e_h($d['v'])?>" size="8" check="^.{1,}$" /> <a href="javascript:" id="re_send_au">发送验证码</a><i class="err-note"></i></span>
  <div class="separator"></div>
  <span class="sh">新密码：</span>
  <span class="sp"><input type="password" name="password" id="l_password" check="^.{1,}$" /></span>
  <span class="sh">重输新密码：</span>
  <span class="sp"><input type="password" id="l_password2" /><i class="err-note"></i></span>
  

  <span class="sh"></span>
  <span class="sp"><input type="submit" value="提交" class="submit" /></span>
  </fieldset>
</form>
<script>
function sg(f){
if ( $('#l_password').val()!=$('#l_password2').val() ){
    $('#l_password2').next('.err-note').text('密码不一致');
    return false;
}
return CheckForm(f);
}
$('#re_send_au').click(function(){
	var a = $('#l_name')[0];
	if (!a.value){
		a.focus();
		return;
	}
	var b = $(this).next('.err-note');
    setLoading(b[0]);
	$.get('?u=cuser\\password-fse&n='+ a.value, function(r){if(r.status) b.text(r.status===true ? '已发送到你绑定的邮箱' : r.status);else checAjaxRe(r);});
});
</script>

